public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog("旺财",5);
        Cat cat=new Cat("小花",8);
                 dog.eat();
                 dog.bark();
                 cat.eat();
                 cat.bark();

    }

}
